package com.borko.healthcare.entities.beans;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.borko.healthcare.entities.beans.enums.GenderType;
import com.borko.healthcare.entities.beans.enums.UserType;
import com.borko.healthcare.entities.interfaces.UserDetails;

@Entity(name = "userdetails")
@Table(name = "USER_DETAIS")
public class UserDetailsBean implements UserDetails {

	@Id
	@GeneratedValue
	@Column(name = "USER_DETAILS_ID")
	private int id;

	private String fullName;

	private String email;

	private String userName;

	private String password;

	@Temporal(TemporalType.DATE)
	private Date birthDate;

	private GenderType gender;

	private String mobilePhone;

	private UserType userType;

	public int getId() {
		return id;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}

	public GenderType getGender() {
		return gender;
	}

	public void setGender(GenderType gender) {
		this.gender = gender;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public UserType getUserType() {
		return userType;
	}

	public void setUserType(UserType userType) {
		this.userType = userType;
	}

}
